package com.cn.boot.spring.service;

import com.cn.boot.spring.entity.UserEntity;
import com.github.pagehelper.Page;

import java.util.List;

public interface IUserService {
    List<UserEntity> findAllUser(UserEntity userEntity);

    UserEntity findById(Integer id);

    UserEntity addUser(UserEntity userEntity);

    void addUsers(List<UserEntity> users);

    void delUserByIds(List<Integer> ids);

    Integer updateUser(UserEntity userEntity);

    Page<UserEntity> page(Integer pageNum, Integer pageSize);

    List<UserEntity> findAll();
}
